import request from 'umi-request';

export async function fetchBtnList(params = {}) {
  return request('/amaidan-sys-user/merchants/element/list', {
    method: 'POST',
    data: params,
  });
}

export async function deleteBtn(params = {}) {
  return request('/amaidan-sys-user/merchants/element/delete', {
    method: 'POST',
    data: params,
  });
}

export async function saveOrUpdateBtn(params = {}) {
  return request('/amaidan-sys-user/merchants/element/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function searchBtn(params = {}) {
  return request('/amaidan-sys-user/merchants/element/get', {
    method: 'POST',
    data: params,
  });
}
